package org.example.commonapi.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.example.commonapi.domain.Course;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.example.commonapi.dto.CourseInfoDto;

import java.util.List;

/**
* @author DELL
* @description 针对表【course】的数据库操作Mapper
* @createDate 2024-06-01 21:55:22
* @Entity org.example.commonapi.domain.Course
*/
public interface CourseMapper extends BaseMapper<Course> {

    IPage<CourseInfoDto> studentList(IPage<CourseInfoDto> page, @Param("state") Integer state, @Param("courseName") String courseName, @Param("id") Long id);

    List<CourseInfoDto> publicList(@Param("state") Integer state,@Param("courseName") String courseName);

    IPage<CourseInfoDto> teacherList(IPage<CourseInfoDto> page,@Param("state") Integer state,@Param("courseName") String courseName,@Param("id") Long id);
}




